#include "utils/MemoryUtil.h"

void Test_PrintStack_1()
{
    tb::MemoryUtil::PrintStack();
}

void Test_PrintStack_2()
{
    tb::MemoryUtil::PrintStack("TEST");
}

void Test_HexPrintBuffer_1()
{
    char test[256] = "125a3ADC566742->->45!23afasdb2345~+asd  dfasdfasdf dsfasfdsa\nfasfadsf";
    tb::MemoryUtil::HexPrintBuffer((void*)test, strlen(test));
}

void Test_HexPrintBuffer_2()
{
    char test[256] = "125a3ADC566742->->45!23afasdb2345~+asd  dfasdfasdf dsfasfdsa\nfasfadsf";
	tb::MemoryUtil::HexPrintBuffer(test, strlen(test), (long)test);
}

void Test_MemoryUtil()
{
    printf("\n======== Test_HexPrintBuffer_1 =======\n");
    Test_HexPrintBuffer_1();

    printf("\n======== Test_HexPrintBuffer_2 =======\n");
    Test_HexPrintBuffer_2();

    printf("\n======== Test_PrintStack_1 =======\n");
    Test_PrintStack_1();

    printf("\n======== Test_PrintStack_2 =======\n");
    Test_PrintStack_2();

}
